package com.cne.gmail.Gmail.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 通讯录
 */
@Data
@Document("addressList")
//@org.springframework.data.elasticsearch.annotations.Document(indexName="projectname",type="post",indexStoreType="fs",shards=5,replicas=1,refreshInterval="-1")
@ApiModel(value="AddressList",description="通讯录")
public class AddressList {
    @Id
    private String id;
    @ApiModelProperty(name = "me",value = "当前用户邮箱",example = "feiji@cneglobal.net")
    private String me;
    @ApiModelProperty(name = "name",value = "用户名",example = "飞飞")
    @TextIndexed
    private String name;
    @ApiModelProperty(name = "address",value = "google邮箱地址",example = "feifei@cneglobal.net")
    private String address;
    @ApiModelProperty(name = "group",value = "分组信息",example = "UPS组")
    private String group;
}
